﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YTCMS.Domain.Entities
{
    [Table("orderinfo")]
    public partial class orderinfo
    {
        [Key]
        public int Id { get; set; }
        public Nullable<int> uid { get; set; }
        public string Code { get; set; }
        public Nullable<decimal> Money { get; set; }
        public Nullable<int> quantity { get; set; }
        public Nullable<int> Pid { get; set; }

        [ForeignKey("Pid")]
        public virtual products products { get; set; }
    }
}
